package com.example.uCenter.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhl
 * @since 2022-08-29 08:38:53
 */
@Getter
@Setter
@TableName("personal_data")
@ApiModel(value = "PersonalData对象", description = "")
public class PersonalData {

    @ApiModelProperty("ID")
    @TableId(value = "personal_id", type = IdType.AUTO)
    private Integer personalId;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("登录天数")
    @TableField("login_day")
    private Integer loginDay;

    @ApiModelProperty("注册时间")
    @TableField("register_time")
    private LocalDateTime registerTime;

    @ApiModelProperty("粉丝数量")
    @TableField("fans_count")
    private Integer fansCount;

    @ApiModelProperty("关注数量")
    @TableField("follows_count")
    private Integer followsCount;

    @ApiModelProperty("在线时间")
    @TableField("on_time")
    private LocalDateTime onTime;

    @ApiModelProperty("逻辑删除标记 0表示正常，1表示删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;



}
